cmake_minimum_required(VERSION 3.5)

project(OpenCV_Base)

IF (WIN32)
	MESSAGE(STATUS "Now is windows")
	set(OpenCV_DIR F:/software/Opencv/opencv/build/x64/vc15/lib)
ELSEIF (UNIX)
	MESSAGE(STATUS "Now is UNIX-like OS's.")
ENDIF ()

find_package(OpenCV 3 REQUIRED)

# set(OpenCV_FOUND 1)
include_directories(${OpenCV_INCLUDE_DIRS})

add_executable(OpenCV_Base src/main.cpp)

link_directories(${OpenCV_LIBRARY_DIRS})

target_link_libraries(OpenCV_Base ${OpenCV_LIBS})